<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<div id="loader" style="background-color:#000;width:680px;height:550px"></div>
<?php 
	
	if(isset($_GET['id']))
	{
		$id=mysql_query("select * from phim where maphim = {$_GET['id']}") or die(mysql_error());
		$fetch_id=mysql_fetch_array($id);
		echo "<div id='link' style='visibility:hidden'>".$fetch_id['lienket']."</div>";
	}
?>
<script type="text/javascript">
$.ajaxSetup ({  
        cache: false  
    });
	var ajax_load = "<img src='img/load.gif' alt='loading...' />";  
	var lienket=$('#link').text();
	$("#loader").html(ajax_load).load("include/get_link.php embed","link="+lienket,function(){
			var n=$('embed').attr("flashvars").replace("skin=http://phimsot.com/html/phimsotplayer/skins/whotube/whotube.xml","");
			$('embed').attr("flashvars",n);
		});	
</script>